<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>List sản phẩm dạng cột div</title>

<link href="style/css1.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.corner.js"></script>
<script> 
$(document).ready(function()
 { 
 $(".rowcon").corner ("Dog2 30px");

}); 
</script>


</head>

<body>
<?php
$idhang = $_GET["idhang"];
include("config/config.php");
$lenh = "select tensp,tentl,soluong,giatien,hinh from sanpham,theloai where sanpham.matl = theloai.matl and theloai.matl = '$idhang'";
$kq = mysql_query($lenh);

?>
<div id="rowcha">
<?php
 while($row = mysql_fetch_array($kq))
  {
	  ?>
	<div class="rowcon">
   <font color="#0000FF"> Tên:</font> <?php echo $row[0];       ?><br/>
   <font color="#0000FF">Loại:</font>  <?php echo $row[1];       ?><br/>
   <font color="#0000FF">Số lượng:</font>  <?php echo $row[2];       ?><br/>
  <font color="#0000FF">Thành tiền:</font>  <?php echo $row[3];       ?><br/>
  <img src="image/<?php echo $row[4];       ?>" width="220" height="150" class="hinhsp"/><br/>
  
  
    
    </div><!--rowcon-->
<?php
  }
  ?>
</div><!--rowcha-->

</body>
</html>